﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <link rel="stylesheet" type="text/css" href="{$Think.const.HOME_CSS_URL}formui.css" />
    <link rel="stylesheet" type="text/css" href="{$Think.const.HOME_CSS_URL}admin-all.css" />
    <link rel="stylesheet" type="text/css" href="{$Think.const.HOME_CSS_URL}base.css"/>
    <script type="text/javascript" src="{$Think.const.HOME_JS_URL}jquery-1.7.2.js"></script>
    <script type="text/javascript" src="{$Think.const.HOME_JS_URL}jquery-ui-1.8.22.custom.min.js"></script>
    <link rel="stylesheet" type="text/css" href="{$Think.const.HOME_CSS_URL}ui-lightness/jquery-ui-1.8.22.custom.css" />
    <script type="text/javascript" src="{$Think.const.HOME_JS_URL}Validform_v5.3.2_min.js"></script>
    <style type="text/css">
        .auto-style1 {
            height: 26px;
        }
    </style>
    
    
</head>
<body>
    <div class="alert alert-info">当前位置<b class="tip"></b>管理员管理<b class="tip"></b>编辑管理员</div>
    &nbsp;<a class="btn" id="Button3" href="{:U('lst')}">返回管理员列表</a>
        <form class='demoform' name="main_form" method="POST" action="__SELF__" enctype="multipart/form-data">
            <input type="hidden" name="id" value="{$data['id']}" />
        <table class="tb" id="top" cellspacing="1" cellpadding="3" width="100%">
            <tr>
                <td class="alert alert-info">账号：</td>
                <td>
                    <input  type="text" name="username" value="{$data['username']}" datatype="*1-20" errormsg="账号最多20个字符！"/>
                </td>
            </tr>
            <tr>
                <td class="alert alert-info">密码：</td>
                <td>
                    <input type="password" size="25" name="password" datatype="*1-20" errormsg="确认密码最多20个字符！"/>
                    留空代表不修改密码
                </td>
            </tr>
            <tr>
                <td class="alert alert-info">确认密码：</td>
                <td>
                    <input type="cpassword" size="25" name="password" datatype="*1-20" errormsg="密码最多20个字符！"/>
                </td>
            </tr>
            <tr>
                <if condition="$data['id'] !=1">
                <td class="alert alert-info">是否启用：</td>
                <td>
                	<input type="radio" name="is_use" value="1" {$data['is_use'] == '1'? 'checked="checked"':''}/>启用 
                	<input type="radio" name="is_use" value="0" {$data['is_use'] == '0'?'checked="checked"':''} />禁用 
                </td>
                </if>
            </tr>
            <tr>
                <td class="alert alert-info">选择角色：</td><td>
                <volist name='roleData' id='v'>
                 
                    <if condition="strpos(','.$rid.',',','.$v['id'].',')!==FALSE">
                    <input type="checkbox" name="role_id[]" value={$v.id} checked="checked" />{$v.role_name}
                     <else/>
                    <input type="checkbox" name="role_id[]" value={$v.id} />{$v.role_name}
                    </if>
                </volist>
                </td>
            </tr>
            <tr>
                <td colspan="99" align="center">
                    <input type="submit" class="btn" value=" 确定 " />
                    <input type="reset" class="btn" value=" 重置 " />
                </td>
            </tr>
        </table>
    </form>

</body>


<script>
    $(".demoform").Validform();
</script>